package com.gdqy.FCS.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gdqy.FCS.dao.DesignerLabelDao;
import com.gdqy.FCS.entity.DesignerLabel;

@Service
@Transactional
public class DesignerLabelService {
	
	@Autowired 
	private DesignerLabelDao designerLabelDao;
	
	public int insert(DesignerLabel designerLabel){
		
		return designerLabelDao.insert(designerLabel);
		
	}
	public int deleteByDesiner_id(int designer_id){
		return designerLabelDao.deleteByDesiner_id(designer_id);
	}
	
	public List<DesignerLabel> selectByDesigner_id(int id){
		return designerLabelDao.selectByDesigner_id(id);
	}
	
	public int insertLabels(List<DesignerLabel> designerLabels){
		return designerLabelDao.insertLabels(designerLabels);
	}
}
